#include "BaseCoordinate.h"

namespace catan
{

BaseCoordinate::BaseCoordinate(CoordinateX coordinateX, CoordinateY coordinateY) : coordinateX(coordinateX), coordinateY(coordinateY)
{
}

CoordinateX BaseCoordinate::getCoordinateX() const
{
	return coordinateX;
}

CoordinateY BaseCoordinate::getCoordinateY() const
{
	return coordinateY;
}

BaseCoordinate& BaseCoordinate::operator=(const BaseCoordinate& other)
{
    if (this != &other)
    {
        coordinateX = other.coordinateX;
        coordinateY = other.coordinateY;
    }
    return *this;	
}

}
